package or.exa.cangguan.mapper;

import or.exa.cangguan.common.Page;
import or.exa.cangguan.entity.dto.AreaDto;
import or.exa.cangguan.entity.po.Area;
import or.exa.cangguan.entity.vo.AreaVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AreaMapper {
    int deleteByPrimaryKey(Integer id);

    List<String> selectName();

    int selectIdByName(String name);

    int selectAreaCount(@Param("areaVo") AreaVo areaVo,@Param("storeId") Integer storeId);

    int insert(Area record);

    int insertSelective(Area record);

    Area selectByPrimaryKey(Integer id);

    List<AreaDto> selectArea(@Param("areaVo") AreaVo areaVo,@Param("storeId") Integer storeId,@Param("page") Page page);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);
}